package com.itheima.pojo.admin;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author ChenJunJie
 * @date 2022/6/12 20:00
 * 员工分页查询展示类
 */
public class Pagination<T> {
    private List<T> records;
    private Integer total;
    private Integer size;
    private Integer current;

    public Pagination() {
    }

    public Pagination(List<T> records, Integer total, Integer size, Integer current) {
        this.records = records;
        this.total = total;
        this.size = size;
        this.current = current;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    @Override
    public String toString() {
        return "Pagination{" +
                "records=" + records +
                ", total=" + total +
                ", size=" + size +
                ", current=" + current +
                '}';
    }
}
